package com.my.chapter8;

public class practice4 {
    public static void main(String[] args) {
        Shape r = new Rectangle();
        r.draw();
        r.erase();
    }
}

class Rectangle extends Shape{
    public void draw(){
        System.out.println("Rectangle.draw()");
    }
    public void erase(){
        System.out.println("Rectangle.erase()");
    }
}